//
//  ZZNetWorkBaseResponse.h
//  ZZNetWorker
//
//  Created by ZengLiZhi on 2024/1/31.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class ZZNetWorkRequest;
@interface ZZNetWorkResponse <T> : NSObject 

@property (nonatomic, strong) id originalData;

@property (nonatomic, assign) NSInteger code;
@property (nonatomic, assign) BOOL success;
@property (nonatomic, strong) NSString *msg;
@property (nonatomic, strong) id data;
/// 测试返回数据
@property (nonatomic, strong) id testData;

@property (nonatomic, strong) Class dataClass;
/**data转model后*/
@property (nonatomic, strong) T obj;
@property (nonatomic, strong) NSArray <T> *objArray;

- (ZZNetWorkResponse *)setKeyValues:(NSDictionary *)json;

- (BOOL)codeVerify:(ZZNetWorkRequest *)request;
@end

NS_ASSUME_NONNULL_END
